﻿using DL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace BusinessService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISanPhamService" in both code and config file together.
    [ServiceContract]
    public interface ISanPhamService
    {
        [OperationContract]
        string CapNhatViTriSanPham(List<SanPham> sp);
        [OperationContract]
        string CapNhatSanPhamNoiBat(List<SanPham> sp);
        [OperationContract]
        List<SanPham> DanhSachViTriSanPham();
        [OperationContract]
        DanhSachSanPham DanhSachSanPham(long idloai, int currPage, int recodperpage, int Pagesize, string func);
        [OperationContract]
        List<SanPham> TimKiemSanPham(long idloai, string tukhoa);
        [OperationContract]
        List<LoaiSanPham> DanhSachLoaiSanPham();
        [OperationContract]
        SanPham ChiTietSanPham(long IdSanPham, int currPage, int recodperpage, int Pagesize, string func);
        [OperationContract]
        SanPham ChiTietNoiDungSanPham(long IdSanPham);
        [OperationContract]
        DanhSachBinhLuan DanhSachBinhLuan(int currPage, int recodperpage, int Pagesize, string func);
        [OperationContract]
        string CapNhatLoaiSanPham(LoaiSanPham lsp);
        
        [OperationContract]
        string CapNhatSanPham(SanPham sp);

        [OperationContract]
        string CapNhatSanPhamChiTiet(SanPhamAnhCT anhct, SanPhamNoiDungCT noidungct);
    }
}
